package hello

import (
	"context"
	"fmt"

	v1 "demo/api/hello/v1"
)

func (c *ControllerV1) Hello(ctx context.Context, req *v1.HelloReq) (res *v1.HelloRes, err error) {
	// g.RequestFromCtx(ctx).Response.Writeln("Hello World!")
	res = &v1.HelloRes{
		Data: fmt.Sprintf(
			"Hello %s! Your Age is %d",
			req.Name,
			req.Age,
		),
	}
	return
}
